home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15057 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  745 b 

  1. Path: ccshst05.cs.uoguelph.ca!ccshst01!thay
  2. From: thay@uoguelph.ca (Toby K Hay)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Passing to C prog from Dos Prompt
  5. Date: 16 Apr 1996 22:12:04 GMT
  6. Organization: University of Guelph
  7. Message-ID: <4l15vk$rti@ccshst05.uoguelph.ca>
  8. References: <4l0qei$gj9@soap.news.pipex.net>
  9. NNTP-Posting-Host: ccshst01.uoguelph.ca
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. ZXCV (unregistered@dial.pipex.com) wrote:
  13.  
  14. : basically, I want to pass some parameters to a program from DOS
  15.  
  16. Search your manual/help files for references to argv and argw. 
  17. If you declare main as "int main(int argc, char *argv[])" you can access 
  18. command line parameters by number in the list of paramters using argc and 
  19. argv.
  20.  
  21. Toby Hay    thay@uoguelph.ca
  22.  
  23.